<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('project_others', function (Blueprint $table) {
            $table->id();
            $table->unsignedBigInteger('project_id')->default(0)->comment('项目');
            $table->string('technical_bid')->nullable()->comment('技术标');
            $table->string('business')->nullable()->comment('商务部');
            $table->string('permit')->nullable()->comment('施工许可证');
            $table->string('files')->nullable()->comment('施工资料');
            $table->string('cert')->nullable()->comment('锁定证书');
            $table->string('cert_date')->nullable()->comment('锁定证书时间');
            $table->string('blueprint')->nullable()->comment('竣工图纸');
            $table->string('liquidation')->nullable()->comment('结算审计');
            $table->string('remarks')->nullable()->comment('备注');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('project_others');
    }
};
